import Vue from 'vue'
import App from './App.vue'
import router from './router/index.js'
import request from './utils/request.js'
/* Element-UI */
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
/* 默认样式初始化 */
import './styles/reset.less'
import './styles/index.less'

Vue.config.productionTip = false

Vue.filter('imgUrl' , (val) => {
	if(val && val.indexOf('http') === -1){
		return request.defaults.baseURL + val;
	}else{
		return val;
	}
})

new Vue({
	router,
	render: h => h(App),
}).$mount('#app')
